package com.atguigu.spbt.test1214.service.impl;

import com.atguigu.spbt.test1214.bean.Customer;
import com.atguigu.spbt.test1214.mapper.CustomerMapper;
import com.atguigu.spbt.test1214.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerServiceImpl implements CustomerService {

    @Autowired
    CustomerMapper customerMapper;

    @Override
    public void saveCustomer(Customer customer) {
        System.out.println("保存操作："+customer);

    }

    public  List<Customer> getCustomerList(){
        return customerMapper.getCustomerList();
    }
}
